using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace TRON_TheGrid
{
    /// <summary>
    /// This is a game component that implements IUpdateable.
    /// </summary>
    public class Mur:ObjetFixe 
    {
        private int dureeVie;
        private Color uneCouleur;

        public Color UneCouleur
        {
            get { return uneCouleur; }
            set { uneCouleur = value; }
        }
        public int DureeVie
        {
            get { return dureeVie; }
            set { dureeVie = value; }
        }
        

        public Mur(Color couleur,int dureevie,Game game, Texture2D texture, Vector2 position, Vector2 size):base(game,texture,position,size)
        {
            this.uneCouleur = couleur;
            this.dureeVie = dureevie;
        }

        public override void Update(GameTime gameTime)
        {
            this.dureeVie -= 1;
            base.Update(gameTime);
        }
    }
}
